package com.victualler.core.config.permission.dto.request;

import com.victualler.core.common.annotation.ListPageQuery;
import com.victualler.core.common.annotation.SimpleQueryFrom;
import com.victualler.core.common.annotation.SimpleQueryWhere;
import com.victualler.core.common.enums.LinkType;

import java.io.Serializable;

/**
 * @Aouthor Guoshichang
 * @Date 11:45 on 2018/7/7.
 * @Function 通用查询对象
 */
@SimpleQueryFrom(value = "common_user UserInfoDao")
public class UserRequestDto implements Serializable{

    @SimpleQueryWhere(specialName = "UserInfoDao.userId")
    @ListPageQuery(title = "账号")
    private Long  id;

    @SimpleQueryWhere(specialName = "UserInfoDao.name",linkType = LinkType.LIKE)
    @ListPageQuery(title = "用户名")
    private String name;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
